import request from '@/utils/request'

// 查询进度节点列表
export function listPlanNode(query) {
  return request({
    url: '/hhsw/planNode/list',
    method: 'get',
    params: query
  })
}

// 查询进度节点详细
export function getPlanNode(id) {
  return request({
    url: '/hhsw/planNode/' + id,
    method: 'get'
  })
}

// 新增进度节点
export function addPlanNode(data) {
  return request({
    url: '/hhsw/planNode',
    method: 'post',
    data: data
  })
}

// 修改进度节点
export function updatePlanNode(data) {
  return request({
    url: '/hhsw/planNode',
    method: 'put',
    data: data
  })
}

// 删除进度节点
export function delPlanNode(id) {
  return request({
    url: '/hhsw/planNode/' + id,
    method: 'delete'
  })
}
